<?php
include_once('init.php');
//判断是否登陆
if($_SESSION['teacher']==''){
    fs_showmsg('权限不足','index.php');
}else{
    $arrteacherinfo = explode('|',$_SESSION['teacher']);
//    print_r($arrteacherinfo);
    list(
        $teacher_id			,				//教师ID
        $teacher_passport               ,                               //登陆账户
        $teacher_password		,				//教师密码
        $teacher_departmentid		,				//教师系
        $teacher_majorid		,				//教师专业
        $teacher_state                  ,                               //教师状态
        $teacher_logintimes		,				//登陆次数
        $teacher_lastlogintime	,                                       //最后登陆时间
        $teacher_onlinetime		,				//在线时长 
        $teacher_realname 		,				//真实姓名
        $teacher_tel			,				//联系电话
        $teacher_email			,				//电子邮箱
        $teacher_qq                     ,                               //教师QQ
        $teacher_type                   ,				//用户权限 2教师 3学生 1班主任
        $teacher_registerdate           ,				//开通时间
        $teacher_classid                ,				//学生所属班级或班主任管理班级
        $teacher_isverify               ,                               //是否验证
    )=$arrteacherinfo;
}
if($_GET['ajax']!=1){//判断是否是ajax 如果是ajax 则头部内容不必输出
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="author" content="" />
<meta name="Copyright" content="" />
<meta name="keywords" content="" />
<meta name="description" content="后台管理" />
<link rel="stylesheet" rev="stylesheet" href="resources/css/a.css" type="text/css" media="all" />
<link rel="stylesheet" rev="stylesheet" href="resources/css/control.css" type="text/css" media="all" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="../js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="js/public.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<title>后台管理</title>
<style type="text/css">
#content {background:#f8f8f8;padding:30px;height:100%;} 
#content a {font-size:30px;color:#369;font-weight:700;} 
.alert {border:1px solid #369;width:300px;height:150px;background:#e2ecf5;z-index:1000;position:absolute;display:none;} 
.alert h4 {height:20px;background:#369;color:#fff;padding:5px 0 0 5px;} 
.alert h4 span {float:left;} 
.alert h4 span#close {margin-left:210px;font-weight:500;cursor:pointer;} 
.alert p {padding:12px 0 0 30px;} 
.alert p input {width:120px;margin-left:20px;} 
.alert p input.myinp {border:1px solid #ccc;height:16px;} 
.alert p input.sub {width:60px;margin-left:30px;} 
</style>
</head>
<body class="ContentBody">
<div class="MainDiv">
<?php
}
?>